import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages';

export default defineUniPages({
  globalStyle: {
    // 导航栏字体颜色
    navigationBarTextStyle: '@navTxtStyle',
    // 导航栏背景色
    navigationBarBackgroundColor: '@navBgColor',
    // 导航栏背景底色
    backgroundColor: '@bgColor'
  },
  easycom: {
    autoscan: true,
    custom: {
      '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)': 'z-paging/components/z-paging$1/z-paging$1.vue',
      '^byt-(.*)': '@/uni_modules/byt-ai-agent-uni/components/agent-dialogue/byt-$1/byt-$1.vue'
    }
  },
  tabBar: {
    // custom: true, 小程序选择自定义tabBar
    // height: '0px',
    // fontSize: '0px',
    // iconWidth: '0px',
    // spacing: '3px',
    color: '#64748b',
    selectedColor: '#667eea',
    backgroundColor: '#ffffff',
    borderStyle: '#e2e8f0',
    list: [
      {
        iconPath: '/static/tabBar/home_default.png',
        selectedIconPath: '/static/tabBar/home_active.png',
        pagePath: 'pages/index/index',
        text: '首页'
      },
      {
        iconPath: '/static/tabBar/ai_default.png',
        selectedIconPath: '/static/tabBar/ai_active.png',
        pagePath: 'pages/aiAgent/index',
        text: '数字分身'
      },
      {
        iconPath: '/static/tabBar/my_default.png',
        selectedIconPath: '/static/tabBar/my_active.png',
        pagePath: 'pages/my/index',
        text: '我的'
      }
    ]
  }
});
